]> git.saurik.com Git - apple/mdnsresponder.git/blob - Documents/Start mDNSResponder in Xcode.rtfd/TXT.rtf
mDNSResponder-1310.80.1.tar.gz
[apple/mdnsresponder.git] / Documents / Start mDNSResponder in Xcode.rtfd / TXT.rtf
1 {\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf150
2 {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
3 {\colortbl;\red255\green255\blue255;}
4 {\*\expandedcolortbl;\csgray\c100000;}
5 \margl1440\margr1440\vieww51000\viewh25780\viewkind0
6 \deftab720
7 \pard\pardeftab720\partightenfactor0
8
9 \f0\fs24 \cf0 \expnd0\expndtw0\kerning0
10 Instructions on how to run a secondary mDNSResponder in the Xcode debugger. (Two known issues, the secondary mDNSResponder will not receive unicast mDNS packets and it does not support BTMM.)\
11 \
12 1.) From Terminal shell, open mDNSResponder Xcode project. \'a0\
13 \
14 $ open mDNSMacOSX/mDNSResponder.xcodeproj/\
15 \
16 You can also just double click on the project from Finder.\
17 \
18 2.) Configure Xcode Project Scheme by adding the following three arguments, -d -NoSandbox -UseDebugSocket.\
19 \
20 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
21 \cf0 \kerning1\expnd0\expndtw0 {{\NeXTGraphic A944EB40-AEFD-4CA1-BF10-E8F52835CA8C.png \width18360 \height4420
22 }¬}\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
23 \cf0 \expnd0\expndtw0\kerning0
24 \
25 \pard\pardeftab720\partightenfactor0
26 \cf0 \
27 3.) Build and run mDNSResponder by setting the target to mDNSResponder.\
28 \
29 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
30 \cf0 \kerning1\expnd0\expndtw0 {{\NeXTGraphic Screen Shot 2015-09-16 at 4.22.37 PM.png \width5980 \height660
31 }¬}\expnd0\expndtw0\kerning0
32 \
33 \pard\pardeftab720\partightenfactor0
34 \cf0 \
35 Then execute\'a0Command-R to build and run your code with the active scheme.\
36 \
37 \pard\pardeftab720\pardirnatural\partightenfactor0
38 \cf0 \kerning1\expnd0\expndtw0 \CocoaLigature0 4.) Before using dns-sd with Xcode-version of mDNSResponder, make sure to export the socket UDS path by executing one of the following commands:\
39 \
40 From a Borne, bash or zsh, execute this command:\
41 \
42 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
43 \cf0 export DNSSD_UDS_PATH=/var/tmp/mDNSResponder\
44 \
45 \pard\tx729\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
46 \cf0 From csh or tcsh, execute this command:\
47 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
48 \cf0 \
49 \expnd0\expndtw0\kerning0
50 \CocoaLigature1 setenv DNSSD_UDS_PATH /var/tmp/mDNSResponder\
51 \
52 There may be other variants to setting the environment variable as well for other shells.\kerning1\expnd0\expndtw0 \CocoaLigature0 \
53 \
54 Now running dns-sd will interoperate with the secondary Xcode-version of mDNSResponder as long as you run dns-sd from this terminal shell.\
55 \
56 5.) \expnd0\expndtw0\kerning0
57 \CocoaLigature1 Now set a breakpoint in Xcode and try to trigger it using dns-sd.\
58 }